﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace BadmintonBuddy.Models
{
    public class ClubFormViewModel
    {
        public Club Club { get; set; }
        public IEnumerable<SelectListItem> Cities { get; private set; }
        public IEnumerable<SelectListItem> States { get; private set; }
        public IEnumerable<SelectListItem> Countries { get; private set; }

        public ClubFormViewModel(Club club)
        {
            Club = club;
            ClubRepository repository = new ClubRepository();
            Cities = repository.GetAllCities();
            States = repository.GetAllStates();
            Countries = repository.GetAllCountries();
            

        }

    }
}
